package cn.cloudtogo.support.redis;

import java.util.Set;
import java.util.concurrent.TimeUnit;

/**
 * @author yaolianhua789@gmail.com
 **/
public interface RedisOps {

    Set<String> getAllKeys();

    Long remove(Set<String> keys);

    Boolean remove(final String key);

    Boolean exists(final String key);

    Long getExpired(final String key);

    Long getExpired(final String key, TimeUnit timeUnit);
}
